# frv testcase for setlos $s16,$GRk
# mach: all

	.include "testutils.inc"

	start

	.global setlos
setlos:
	setlos		0,gr1
	test_gr_immed	0,gr1
	setlos		1,gr1
	test_gr_immed	1,gr1
	setlos		0x7fff,gr1
	test_gr_immed	0x7fff,gr1
	setlos		-1,gr1
	test_gr_immed	-1,gr1
	setlos		-32768,gr1
	test_gr_immed	-32768,gr1

	pass
